@extends('app')
@section('css')
@parent
	<link href="{{ asset('web/css/admin.css') }}" rel="stylesheet">
@stop
@section('content')
    <div class="page">
        <div class="header">“水榭香堤” 管理系统</div>
        <div class="row">
            <div class="col-md-12">
                @include('admin.left')
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form class="form-horizontal" method="POST" action="{{ route('admin.votes.update', [$vote->id]) }}" enctype="multipart/form-data">
                                <input type="hidden" name="_method" value="PUT">
                                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                <div class="shangchuan">
                                    <p><input name="title" type="text" class="wbk" value="{{ $vote->title }}" placeholder="请输入您的姓名"/></p>
                                    <p><input name="content" type="text" class="wbk" value="{{ $vote->content }}" placeholder="请输入您的联系方式"/></p>
                                    <div class="tpal" style="padding: 0 0 10px 0;"><a href="{{ url('votes/create') }}"><img src="{{ $vote->img_src ? asset($vote->img_src) : asset('web/images/tp.jpg') }}" width="100%" /></a></div>
                                    <p><label class="file-box">上传头像<input title="浏览文件" type="file" name="img" /></label></p>
                                    <p><input name="" type="submit" value="确认上传" class="tijiao" /></p>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop